package lzy.impl.smallspring.beans;

import java.util.*;

public class PropertyValues {
    private final Map<String, PropertyValue> propertyValueList = new HashMap<String, PropertyValue>();

    public void addPropertyValue(PropertyValue value) {
        propertyValueList.put(value.getName(), value);
    }

    public List<PropertyValue> getProperties() {
        return new ArrayList<>(propertyValueList.values());
    }

    public PropertyValue getPropertyValue(String name) {
        return propertyValueList.get(name);
    }
}
